function ajax(uri, token, data, success) {
	let http = {
		base:'http://192.168.124.16:3030/api/v1',
		// base: 'http://120.27.239.245:3030/api/v1',
		token: token,
	};
	let url = http.base + uri;
	let query = {};
	if (!uri.startsWith('/public')) {
		query.token = http.token;
	}
	if (data) {
		query.data = JSON.stringify(data);
	}
	return new Promise(function (resolve, reject) {
		try {
			window.mui.getJSON(url, query, function (res) {
				resolve(res);
				success && success(res);
			});
		} catch (e) {
			mui.toast('服务器异常,请稍后再试')
			reject(e);
		}
	});
}
